package com.sghd.candy.module.element.facade;

import com.sghd.common.socket.anno.InBody;
import com.sghd.common.socket.anno.InSession;
import com.sghd.common.socket.anno.SocketCommand;
import com.sghd.common.socket.anno.SocketModule;
import com.sghd.pojo.candy.element.vo.ElementVo;
import com.sghd.pojo.fight.game.ChessType;
import com.sghd.pojo.fight.game.Result;

import static com.sghd.candy.utils.SocketEnum.ELEMENT_LIST;
import static com.sghd.candy.utils.SocketEnum.ELEMENT_UPGRADE;
import static com.sghd.common.socket.session.SessionKeys.IDENTITY;

/**
 * @author Allen
 * @date 2018/12/28
 */
@SocketModule()
public interface ElementFacade {
    /**
     *  升级五行
     * @param playerId
     * @param chessType
     * @return
     */
    @SocketCommand(ELEMENT_UPGRADE)
    Result<String> upgrade(@InSession(IDENTITY)long playerId, @InBody("chessType")ChessType chessType);

    /**
     * 打开五行界面
     * @param playerId
     * @return
     */
    @SocketCommand(ELEMENT_LIST)
    ElementVo elementList(@InSession(IDENTITY)long playerId);
}
